package com.chensf.studydemo

import android.app.Application
import android.util.Log
import com.chensf.studydemo.common.query.PinYin
import com.tencent.smtt.sdk.QbSdk
import com.tencent.smtt.sdk.QbSdk.PreInitCallback

class MyApp :Application(){
    override fun onCreate() {
        super.onCreate()
        // init pinyin
        // init pinyin
        Utils.context = applicationContext
        PinYin.init(this)
        PinYin.validate()
//        QbSdk.setDownloadWithoutWifi(true);
        QbSdk.initX5Environment(this, object : PreInitCallback {
            override fun onCoreInitFinished() {
                Log.e("snow", "========onCoreInitFinished===")
            }

            override fun onViewInitFinished(b: Boolean) {
                Log.e("snow", "x5初始化结果====$b")
            }
        })
    }
}